function payOrder(order_id)
{
    $.ajax({
        url: "svc/order_admin.php",
        dataType: "JSON",
        type: "POST",
        data: {
            action: "payOrder",
            id: order_id

        },
        success : function(data){
                manager.refresh();
        }
    });
}

function freeOrder(order_id)
{
    $.ajax({
        url: "svc/order_admin.php",
        dataType: "JSON",
        type: "POST",
        data: {
            action: "freeOrder",
            id: order_id

        },
        success : function(data){
            manager.refresh();
        }
    });
}